// app.js
App({
  onLaunch() {
    let that = this
    wx.getSystemInfo({
      success: (res) => {
        console.log(res)
        that.globalData.safeArea = res.safeArea
      }
    })
  },
  globalData: {
    userInfo: null,
    safeArea: {}

  }
})